# -*- coding: utf-8 -*-

from openerp.osv import osv, fields, orm

#微信服务号
class wechat_official(osv.osv):
    _name = 'wechat.official'

    _columns = {
        'name': fields.char(u'微信公众号名称'),
        'app_id': fields.char(u'微信接入APP ID'), #公众号app ID
        'secret': fields.char(u'开发者凭据密钥'), #开发者凭据密钥
        'token': fields.char(u'token'), #自定义的token
        'access_token': fields.char(u'微信接口主动调用token'), #7200秒有效
        'access_token_timestamp': fields.integer(u'token起始时间戳'),
        'jsapi_ticket': fields.char(u'微信js sdk访问token'), #7200秒有效
        'jsapi_ticket_timestamp': fields.integer(u'js sdk token起始时间戳'),
    }